<!-- <div class="modal-header">
            <h3 class="modal-title">Add New Lab</h3>
</div>
<div class="modal-body">
            <form role="form">
                <div class="form-group {{errorClass}}">
                  <label>Lab Name</label>
                  <input type="text" class="form-control" data-ng-model="labName" placeholder="Enter Lab's Name" autofocus>
                  <span class="help-block" data-ng-show="errorClass != ''" data-ng-bind="errorMessage"></span>
                </div>
                
                <div class="form-group">
                  <label>Version</label>
                  <input type="text" class="form-control" data-ng-model="version" placeholder="Enter version">
                </div>
            
                <div class="form-group">
                  <label>Author</label>
                  <input type="text" class="form-control" data-ng-model="author" placeholder="Enter Author">
                </div>
                
                <div class="form-group">
                 <label>Config Script timeout</label>
                  <input class="form-control" data-ng-model="scripttimeout" placeholder="Enter timeout"/>
                </div>
                
                <div class="form-group">
                  <label>Description</label>
                  <textarea class="form-control" rows="3" data-ng-model="description" placeholder="Enter description"></textarea>
                </div>
              </form>
</div>
<div class="modal-footer">
            <button class="btn btn-success btn-flat {{blockButtonsClass}}" ng-disabled="blockButtons" type="button" ng-click="addNewLab()">Add</button>
            <button class="btn btn-default btn-flat" type="button" ng-click="closeModal()">Cancel</button>
</div> -->


    <div class="modal-header">
        <button type="button" class="close" ng-click="closeModal()" >&times;</button>
        <i class="glyphicon glyphicon-certificate pull-right pointer action-changeopacity" ng-click="opacity()"></i>
        <h4 class="modal-title">新建 Lab</h4>
    </div>
    <div class="modal-body">
        <form id="form-lab-edit" class="form-horizontal form-lab-edit" name="formLabEdit" role="form">
          <div class="row">
            <div class="col-md-4">
                <div class="form-group row required">
                    <label class="col-md-2 control-label control-label_custom_pos">名称</label>
                    <div class="col-md-10">
                        <input class="form-control autofocus" name="name" data-ng-model="labName" placeholder="输入 Lab 名称" autofocus type="text" autofocus="autofocus" ng-pattern="restrictNumber" ng-class="{'input--error': formLabEdit.name.$valid == false, 'input': formLabEdit.name.$valid == true}">
                        <span class="chars" ng-class="{'chars--active': formLabEdit.name.$valid == false, 'chars': formLabEdit.name.$valid == true}">仅限 [A-Za-z0-9_- ]字符</span>
                        <span class="help-block" data-ng-show="errorClass != ''" data-ng-bind="errorMessage"></span>
                    </div>
                </div>
                <div class="form-group row required">
                    <label class="col-md-2 control-label control-label_custom_pos">版本</label>
                    <div class="col-md-10">
                        <input id="version" class="form-control" name="version" data-ng-model="version" placeholder="输入版本号" ng-pattern="restrictTest" ng-class="{'input--error': formLabEdit.version.$valid == false, 'input': formLabEdit.version.$valid == true}">
                        <span class="chars" ng-class="{'chars--active': formLabEdit.version.$valid == false, 'chars': formLabEdit.version.$valid == true}">仅限 ([0-9]字符)</span>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-md-2 control-label control-label_custom_pos">作者</label>
                    <div class="col-md-10">
                        <input class="form-control" data-ng-model="author" placeholder="输入作者"/>                  
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-md-2 control-label control-label_custom_pos">超时</label>
                    <div class="col-md-3">
                        <input class="form-control" data-ng-model="scripttimeout"  placeholder="输入时间" />
                    </div>
                    <label class="col-md-0 control-label control-label_custom">秒</label>
                </div>
				<div class="form-group row">
                    <label class="col-md-4 control-label control-label_custom">Lab倒计时</label>
                    <div class="col-md-3">
                        <input class="form-control" data-ng-model="countdown"  placeholder="输入倒计时" />
                    </div>
                    <label class="col-md-3 control-label control-label_custom">秒</label>
                </div>
                <div class="row">
                  <div class="col-md-12 parent-required">
              <p class="p-required"><sup class="sup-required">*</sup>- 必填字段</p>
                  </div>
                </div>
            </div>
            <div class="col-md-8">
              <div class="form-group row">
                    <label class="col-md-2 control-label">描述</label>
                    <div class="col-md-10">
                        <textarea class="form-control"  data-ng-model="description" placeholder="输入描述" rows="4"></textarea>
                    </div>
                </div>
                <div class="form-group row">
                    <label class="col-md-2 control-label">任务</label>
                    <div class="col-md-10">
                        <textarea class="form-control" data-ng-model="body" placeholder="输入任务" rows="4"></textarea>
                    </div>
                </div>
               
                <div class="form-group">
                    <div class="col-md-2 col-md-offset-10">
                        <div class="pull-right" style="width: 123px;">
                            <button type="submit" class="btn btn-success btn-flat" ng-click="addNewLab()">保存</button>
                            <button type="button" class="btn btn-grey btn-flat" ng-click="closeModal()">取消</button>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        </form>
    </div>
    <div class="modal-footer"></div>
